//v-model mixin
export default {
  props: {
    value: {
      type: String | Number | Object,
      default: () => {
        return undefined
      }
    }
  },
  data() {
    return {
      form: this.value
    }
  },
  watch: {
    value(newVal) {
      this.form = newVal
    },
    form(val) {
      this.$emit('input', val);
    },

  }
}